package edu.sctu.wangfuxin.day20150524.homework;

/**
 * Created by user06 on 2015/5/25.
 */
public class Main {
    public static void main(String[] args) {

        TestString t1 = new TestString();

        if (t1.testEquals("聂宇巨狗")) {
            System.out.println("这名字好啊！简直是如雷贯耳，家喻户晓，妇孺皆知! ");
        }else{
            System.out.println("这名字起得不好，不霸气！");
        }

        System.out.println("您说输入的字符串长度为：" + t1.getStringLength("嫁鸡随聂宇嫁狗随聂宇"));
        System.out.println(t1.subString("嫁鸡随聂宇嫁狗随聂宇",1,6));
        System.out.println(t1.stringIndexOf("abcdefg",'c'));
        System.out.println(t1.stringIndexOf1("abacbdac","a",5));
        System.out.println(t1.stringReplace("替换是后为："+"aabbccddee","bb","ww"));
    }

}
